package org.jeecg.modules.order.vo;

import java.util.List;

import lombok.experimental.Accessors;
import org.jeecg.modules.order.entity.*;
import lombok.Data;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecgframework.poi.excel.annotation.ExcelCollection;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
import org.jeecg.common.aspect.annotation.Dict;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * @Description: 工单表
 * @Author: jeecg-boot
 * @Date:   2022-09-26
 * @Version: V1.0
 */
@Data
@Accessors(chain = true)
@ApiModel(value="mt_repair_orderPage对象", description="工单表")
public class MtRepairOrderPage {

	/**主键*/
	@ApiModelProperty(value = "主键")
    private String id;
	/**创建人*/
	@ApiModelProperty(value = "创建人")
    private String createBy;
	/**创建日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	@ApiModelProperty(value = "创建日期")
    private Date createTime;
	/**更新人*/
	@ApiModelProperty(value = "更新人")
    private String updateBy;
	/**更新日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	@ApiModelProperty(value = "更新日期")
    private Date updateTime;
	/**所属部门*/
	@ApiModelProperty(value = "所属部门")
    private String sysOrgCode;
	/**服务单号*/
	@Excel(name = "服务单号", width = 15)
	@ApiModelProperty(value = "服务单号")
    private String orderNo;
	/**来源*/
	@Excel(name = "来源", width = 15, dicCode = "order_source")
    @Dict(dicCode = "order_source")
	@ApiModelProperty(value = "来源")
    private String orderSource;
	/**类型*/
	@Excel(name = "类型", width = 15, dicCode = "skill_code")
    @Dict(dicCode = "skill_code")
	@ApiModelProperty(value = "类型")
    private String skillType;
	/**处理状态*/
	@Excel(name = "处理状态", width = 15, dicCode = "processing_status")
    @Dict(dicCode = "processing_status")
	@ApiModelProperty(value = "处理状态")
    private String processingStatus;
	/**客户*/
	@Excel(name = "客户", width = 15, dictTable = " mt_custorm", dicText = "custorm_name", dicCode = "id")
    @Dict(dictTable = " mt_custorm", dicText = "custorm_name", dicCode = "id")
	@ApiModelProperty(value = "客户")
    private String customId;
	/**联系人*/
	@Excel(name = "联系人", width = 15)
	@ApiModelProperty(value = "联系人")
    private String linkMan;
	/**联系电话*/
	@Excel(name = "联系电话", width = 15)
	@ApiModelProperty(value = "联系电话")
    private String linkMobile;
	/**问题描述*/
	@Excel(name = "问题描述", width = 15)
	@ApiModelProperty(value = "问题描述")
    private String remarks;
	/**反馈状态*/
	@Excel(name = "反馈状态", width = 15, dicCode = "back_status")
    @Dict(dicCode = "back_status")
	@ApiModelProperty(value = "反馈状态")
    private String backStatus;
	/**照片*/
	@Excel(name = "照片", width = 15)
	@ApiModelProperty(value = "照片")
    private String problemPhoto;
	/**服务商*/
	@Excel(name = "服务商", width = 15, dictTable = "mt_service_providers", dicText = "pro_name", dicCode = "id")
    @Dict(dictTable = "mt_service_providers", dicText = "pro_name", dicCode = "id")
	@ApiModelProperty(value = "服务商")
    private String providerId;
	/**服务站*/
	@Excel(name = "服务站", width = 15, dictTable = "mt_service_station", dicText = "station_name", dicCode = "id")
    @Dict(dictTable = "mt_service_station", dicText = "station_name", dicCode = "id")
	@ApiModelProperty(value = "服务站")
    private String stationId;
	@ApiModelProperty(value = "工程师")
	private String engineerId;
	/**客户设备业务开关*/
	@ApiModelProperty(value = "客户设备业务开关")
	private Boolean updateCustomEquip;

	@ExcelCollection(name="工单派工")
	@ApiModelProperty(value = "工单派工")
	private List<MtRepairDispatch> mtRepairDispatchList;
	@ExcelCollection(name="工单设备")
	@ApiModelProperty(value = "工单设备")
	private List<MtRepairEquip> mtRepairEquipList;
	@ExcelCollection(name="工单进度")
	@ApiModelProperty(value = "工单进度")
	private List<MtRepairSchedule> mtRepairScheduleList;
	@ExcelCollection(name="工单反馈")
	@ApiModelProperty(value = "工单反馈")
	private List<MtRepairFeedback> mtRepairFeedbackList;
	@ExcelCollection(name="工单处理")
	@ApiModelProperty(value = "工单处理")
	private List<MtRepairDispose> mtRepairDisposeList;
	@ExcelCollection(name="工单回访")
	@ApiModelProperty(value = "工单回访")
	private List<MtRepairVisit> mtRepairVisitList;


}
